import { ApiProperty } from '@nestjs/swagger';

/**
 * 创建用户的 DTO 类
 */
export class CreateUserDTO {
  @ApiProperty({ description: '用户的唯一标识符', example: '1' })
  readonly _id: string;

  @ApiProperty({ description: '用户名', example: '小红' })
  readonly user_name: string;

  @ApiProperty({ description: '用户密码', example: 'admin123' })
  readonly password: string;
}

/**
 * 编辑用户的 DTO 类
 */
export class EditUserDTO {
  @ApiProperty({ description: '用户名', example: '小明' })
  readonly user_name: string;

  @ApiProperty({ description: '用户密码', example: 'root456' })
  readonly password: string;
}
